package cn.wildfire.chat.app.extendsion.classes;

import android.os.Parcel;

import androidx.annotation.NonNull;

/**
 * Create by HEKE, 2019/10/17 11:37
 * TODO 绑定手机号回调用户数据对象
 */
public class BindUserInfo extends GsonObject {

    public String address;
    public String caiba_number;
    public String company;
    public String createTime;
    public String displayName;
    public String dt;
    public String email;
    public String extra;
    public String gender;
    public String id;
    public String mobile;
    public String name;
    public String passwdMd5;
    public String portrait;
    public String regionId;
    public String salt;
    public String social;
    public String status;
    public String type;
    public String uid;
    public String updateTime;
    public String updateUserId;
    public String version;

    public BindUserInfo() {
    }

    protected BindUserInfo(Parcel in) {
        address = in.readString();
        caiba_number = in.readString();
        company = in.readString();
        createTime = in.readString();
        displayName = in.readString();
        dt = in.readString();
        email = in.readString();
        extra = in.readString();
        gender = in.readString();
        id = in.readString();
        mobile = in.readString();
        name = in.readString();
        passwdMd5 = in.readString();
        portrait = in.readString();
        regionId = in.readString();
        salt = in.readString();
        social = in.readString();
        status = in.readString();
        type = in.readString();
        uid = in.readString();
        updateTime = in.readString();
        updateUserId = in.readString();
        version = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(address);
        dest.writeString(caiba_number);
        dest.writeString(company);
        dest.writeString(createTime);
        dest.writeString(displayName);
        dest.writeString(dt);
        dest.writeString(email);
        dest.writeString(extra);
        dest.writeString(gender);
        dest.writeString(id);
        dest.writeString(mobile);
        dest.writeString(name);
        dest.writeString(passwdMd5);
        dest.writeString(portrait);
        dest.writeString(regionId);
        dest.writeString(salt);
        dest.writeString(social);
        dest.writeString(status);
        dest.writeString(type);
        dest.writeString(uid);
        dest.writeString(updateTime);
        dest.writeString(updateUserId);
        dest.writeString(version);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<BindUserInfo> CREATOR = new Creator<BindUserInfo>() {
        @Override
        public BindUserInfo createFromParcel(Parcel in) {
            return new BindUserInfo(in);
        }

        @Override
        public BindUserInfo[] newArray(int size) {
            return new BindUserInfo[size];
        }
    };

    @NonNull
    @Override
    public String toString() {
        return toNormalJson();
    }
}
